package ar.edu.taxi.persistencia;

public class FactoryDAO {
	public static IfDAO getDAO(String daoClass){
		IfDAO dao = null;
		if(daoClass.compareToIgnoreCase("CustomerLogs") == 0)
			dao = new DAOCustomerLogs();
		else if(daoClass.compareToIgnoreCase("Customers") == 0)
			dao = new DAOCustomers();
		else if(daoClass.compareToIgnoreCase("Favorites") == 0)
			dao = new DAOFavorites();
		else if(daoClass.compareToIgnoreCase("Languages") == 0)
			dao = new DAOLanguages();
		else if(daoClass.compareToIgnoreCase("Positions") == 0)
			dao = new DAOPositions();
		else if(daoClass.compareToIgnoreCase("Trips") == 0)
			dao = new DAOTrips();
		else if(daoClass.compareToIgnoreCase("TripStates") == 0)
			dao = new DAOTripStates();
		else if(daoClass.compareToIgnoreCase("UserLanguages") == 0)
			dao = new DAOUserLanguages();
		else if(daoClass.compareToIgnoreCase("Users") == 0)
			dao = new DAOUsers();
		else if(daoClass.compareToIgnoreCase("UserTypes") == 0)
			dao = new DAOUserTypes();
		else if(daoClass.compareToIgnoreCase("Vehicles") == 0)
			dao = new DAOVehicles();
		else if(daoClass.compareToIgnoreCase("VehicleTypes") == 0)
			dao = new DAOVehicleTypes();
		
		return dao;
		
	}
}
